package edu.sctu.zhoumengxue.day201506.day20150614.Filepractice;

import java.io.File;

/**只是删除（zhou）文件夹中文件(mengxue.txt)
 * Created by user12 on 2015/6/14.
 */
public class AnotherDeleteFile {

    public void isDeleteFile(){

        File file = new File("D://zhou");
        File files[] = file.listFiles();
        for (int i = 0; i <files.length ; i++) {
            files[i].delete();
        }
    }

    public static void main(String[] args) {
        AnotherDeleteFile another = new AnotherDeleteFile();
        another.isDeleteFile();
    }



}
